package vip.xumy.admin.um.service;

import java.util.List;

import vip.xumy.admin.um.pojo.Permission;
import vip.xumy.core.exception.CoreException;

/**	Ownership belongs to the company
 *	author:mengyxu
 *	date:2019年12月2日
 */

public interface IPermissionService {
	
	List<Permission> queryPermissionTree(boolean isOperater);

	void save(Permission permission) throws CoreException;
	
	void update(Permission permission) throws CoreException;

	void delete(String code);
	
	List<String> myPermissions(String userName, String parentContent);

}
